<template>
  <el-table :data="rightsList" border stripe>
    <el-table-column type="index" label="#" />
    <el-table-column label="权限名称" prop="authName" />
    <el-table-column label="路径" prop="path" />
    <el-table-column label="权限等级">
      <template slot-scope="scope">
        <el-tag v-if="scope.row.level === '0'">一级</el-tag>
        <el-tag v-else-if="scope.row.level === '1'" type="success">二级</el-tag>
        <el-tag v-else type="warnig">三级</el-tag>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: 'PowerRightsListArea',
  props: {
    rightsList: {
      type: Array,
      default() {
        return []
      },
    },
  },
}
</script>
<style lang="less" scoped>
</style>